cmake_minimum_required(VERSION 3.5.1)
project(hello_opencv)

set(add_compile_options -Wall -Wextra -Wpedantic)

# Add libraries
find_package(OpenCV 4 REQUIRED)

add_executable(${PROJECT_NAME}
main.cpp
)

target_link_libraries(${PROJECT_NAME} ${OpenCV_LIBS})
target_compile_options(${PROJECT_NAME} PRIVATE ${compiler_options})
set_target_properties(${PROJECT_NAME} PROPERTIES CXX_STANDARD_REQUIRED ON CXX_STANDARD 11)